package com.achao.javabean.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * (AdminUser)实体类
 *
 * @author makejava
 * @since 2022-07-24 19:56:49
 */
@Data
public class AdminUser implements Serializable {

    private static final long serialVersionUID = 415804057002100924L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 用户名
     */
    private String adminName;
    /**
     * 密码
     */
    private String adminPwd;
    /**
     * 昵称
     */
    private String adminNick;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 手机
     */
    private String phone;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 是否最高权限
     */
    private Integer isRoot;
    /**
     * 角色id
     */
    private Integer roleId;
    /**
     * 账号状态
     */
    private boolean status;

    public AdminUser() {
    }

    public AdminUser(String adminName, String adminPwd, String adminNick, Integer sex, String phone, String email, Integer isRoot, Integer roleId) {
        this.adminName = adminName;
        this.adminPwd = adminPwd;
        this.adminNick = adminNick;
        this.sex = sex;
        this.phone = phone;
        this.email = email;
        this.isRoot = isRoot;
        this.roleId = roleId;
    }

    public AdminUser(Integer id, String adminName, String adminPwd, String adminNick, Integer sex, String phone, String email, Integer isRoot, Integer roleId, boolean status) {
        this.id = id;
        this.adminName = adminName;
        this.adminPwd = adminPwd;
        this.adminNick = adminNick;
        this.sex = sex;
        this.phone = phone;
        this.email = email;
        this.isRoot = isRoot;
        this.roleId = roleId;
        this.status = status;
    }
}

